const Koa=require('koa')
const app=new Koa()
const bodyparser=require("koa-bodyparser")
const static=require("koa-static")

app.use(static("./public"))
app.use(bodyparser())
app.use(require("./router/router").routes())
app.listen(3000,()=>{
    console.log("服务端启动")
})